<template>
  <el-card style="height: 100%;">
    <div slot="header">
      <span>班级成绩查询</span>
    </div>
    <el-table :data="data" size="small" border>
      <el-table-column v-for="(col,index) in colNames" :key="index" :prop="col" :label="col"></el-table-column>
    </el-table>
  </el-card>
</template>

<script>
  export default {
    data() {
      return {
        data: [],
        colNames:[]
      }
    },
    created() {
      this.$ajax.post('grade/classGradeList',{}).then(res=>{
        var result=res.data;
        if(result.success){
          this.colNames=result.data.colNames;
          this.data=result.data.tableData;
        }
      })
    }
  }
</script>

<style>
</style>
